home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir39
/
anidos.zip
/
DEMO.ANI
< prev
next >
Wrap
Text File
|
1993-06-29
|
3KB
|
181 lines
; This is a simple DOS ANIMATOR demonstration script
; The DOS editor EDLIN.COM must be available
p 26 33 2
>> DOS ANIMATOR V1.2 DEMONSTRATION <<
Copyright (C) Matt Harvey, 1987-1993
All rights reserved
In this demonstration, DOS is being
animated from script file "DEMO.SCR"
Press "SysReq" to abort the demo.
.
d1
g wait g wait g wait g wait
p $5f 20 16
DOS ANIMATOR allows key depressions to
be played back from a script file, for
animating almost any existing DOS text
mode application.
.
g wait g wait g wait g wait c g wait
t $e 0 23
Here, the DOS command line itself is being animated
.
g wait g wait g wait g wait c g wait
p $71 20 17
DOS ANIMATOR can also be conditionally
controlled by keyboard input or by the
contents of any given screen location.
.
g wait g wait g wait g wait c g wait
"cls" w10 13 w20
"dir" w10 13 ' ' 8 w10
"rem Hello world!" w10 13 w10
"cls" 13 w10
p $5e 16 2
Pop-up windows like these can be
displayed in any colours, anywhere
on the screen, to keep the viewer
informed. This feature allows DOS
ANIMATOR to be used to produce
tutorials or demonstrations.
.
w20
p $1f 10 12
Text
.
p $2f 12 13
Text
.
p $3f 14 14
Text
.
p $4f 16 15
Text
.
p $5f 18 16
Text
.
p $6f 20 17
Text
.
p $7f 22 18
Text
.
p $8 40 11
Text
.
p $9 42 12
Text
.
p $a 44 13
Text
.
p $b 46 14
Text
.
p $c 48 15
Text
.
p $d 50 16
Text
.
p $e 52 17
Text
.
p $f 54 18
Text
.
g cls
p $5f 17 2
DOS ANIMATOR is also interactive, it can
display a pop-up menu, wait for a key to
be pressed, then jump to a labelled part
of the script according to the key that
was pressed. Invalid keys are beeped.
.
w50 d0
t $1e 10 10
╓── Example Menu ───┐
║ A Add record │
║ D Delete record │
║ F Find record │
║ Q Quit │
╚═══════════════════╛
.
w40 g cls
p $71 17 3
Delays of any length can be introduced
to control timing, or keys can be
played back at the maximum rate that
the application can process them. All
delays are independent of the processor
speed.
.
w120 c w10
d0
"rem These keys have been played back at the maximum speed" 13
"rem supported by DOS." 13 c d1 w70
p $1e 12 8
DOS ANIMATOR can save or append any part of the
screen to a disk file, or can write any text to
a disk file. It can also delete any file. This
feature allows animated progams to communicate
with other programs, such as with a Microsoft
Windows "front-end" to a DOS program which is
controlled by DOS ANIMATOR. It is also useful for
automated software testing.
.
w 200 g cls
p $ce 17 4
>> END OF DOS ANIMATOR DEMONSTRATION <<
.
g goodbye g goodbye g goodbye c
p $4e 20 6
Please don't forget to register to
receive your full-featured copy of
>> DOS ANIMATOR V1.2 <<
.
w100 d0 "cls" 13 q
; Subroutines
:wait "WAIT...." 8 8 8 8 8 8 8 8 r
:cls w100 d0 "cls" 13 d1 w10 r
:goodbye "GoodBye! " 8 8 8 8 8 8 8 8 8 r